package com.gosophia.commons.exception;

import java.io.Serializable;

import javax.xml.ws.WebFault;

/**
 * 并发异常类，封装数据库并发异常及程序并发异常
 * */
@WebFault(name = "concurrencyException", targetNamespace = CustomerExceptionInfo.EXCEPTION_NAMESPACE)
public class ConcurrencyException extends  CommonException  implements
         Serializable {

    private static final long serialVersionUID = -8486826614729702423L;
    protected ExceptionDetail faultInfo;
    public ExceptionDetail getFaultInfo() {
		return faultInfo;
	}
	public void setFaultInfo(ExceptionDetail faultInfo) {
		this.faultInfo = faultInfo;
	}
	public ConcurrencyException(String message, ExceptionDetail faultInfo) {
        super(message,faultInfo);
        
    }
    public ConcurrencyException(String message, ExceptionDetail faultInfo,
            Throwable cause) {
        super(message,faultInfo, cause);

    }
    public ConcurrencyException(String message, String errorCode) {
        super(message,errorCode);
    }
    public ConcurrencyException(String message,String errorCode,String[] values){
    	super(message,errorCode);
    	this.faultInfo=new ExceptionDetail(errorCode,message,values);
    	
    }
}
